package com.beijiteshop.shop.ui.shopcar

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.shopcar.repo.ShopCarRepo
import com.beijiteshop.shop.ui.shopcar.repo.ShopCarService
import com.beijiteshop.shop.ui.shopcar.vm.ShopCarVM
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/19 16:13
 * @Description
 */

val shopCarModule = module {

    single {
        get<RetrofitClient>().getService(ShopCarService::class.java)
    }

    single {
        ShopCarRepo(get())
    }

    viewModel {
        ShopCarVM(get())
    }
}